﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace QuanLyDeTaiKHCN.UserControls
{
    public partial class TopMenuSub : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string st = Request.QueryString["mod"];
            if (st == null)
            {
                if (this.Page.User.Identity.Name.Trim() == "admin")
                {
                    pncreate.Visible = true;
                }
                else
                {
                    pncreate.Visible = false;
                }
                Panel1.Visible = false;
            }
            else
            {
                pncreate.Visible = false;
                Panel1.Visible = true;
            }
        }
    }
}